package beautyofprogramming.gamebeauty;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Timer;


public class TestCPU implements ActionListener {

	Timer t = new Timer(1000, this);
//	int count = 96000000;
	double count = 0;
	public void method1(){
//		for(int i=0;i<200;i++){
				t.start();
//		}
	}
	
	public static void main(String[] args) {
		new TestCPU().method1();
	}

	public void actionPerformed(ActionEvent e) {
		double num = (int)9600000*(1+Math.sin(6.28*(count)/200));
		for(int i=0; i<num; i++){
			
		}
		count += 1.0;
//		try {
////			Thread.sleep(1000);
//		} catch (InterruptedException ee) {
//			ee.printStackTrace();
//		}
		
	}

}
